﻿@{
    var isAjax = Context.Request.Headers.ContainsKey("X-PJAX") || Context.Request.Query["type"] == "ajax";
    if (!isAjax)
    {
        Layout = "_AdminLayout";
    }
    else if (Context.Request.Query["layout"] == "view")
    {
        Layout = "_ViewLayout";
    }
}
